<?xml version="1.0" encoding="UTF-8"?>
<listrows xmlns:xalan="http://xml.apache.org/xslt">
	<#if showDescSort=true >
		<#assign nodes = nodes?sort_by(['properties', showSortBy])?reverse>
    <#else>
    	<#assign nodes = nodes?sort_by(['properties', showSortBy])>
    </#if>
    
    <#list nodes as child>
    <listrow>		
    	<#if child.properties["vgr:docTitle"]?exists >
			<documenttitle>${child.properties["vgr:docTitle"]}</documenttitle>
    	<#else>
    		<documenttitle />
   		</#if>
		<#if showDocType >
			<#if child.properties["vgr:docType"]?exists >
    			<documenttype>${child.properties["vgr:docType"]}</documenttype>
    		<#else>
    			<documenttype />
   			</#if>
   		</#if>
   		
   		<#if showVersion>
			<#if child.properties["vgr:oldVersion"]?exists >
    			<documentversion>${child.properties["vgr:oldVersion"]}</documentversion>
    		<#else>
    			<documentversion/>
    		</#if> 
    	</#if>
    	
    	<#if showPublishedAt>
    		<#if child.properties["vgr:publishedAt"]?exists >
    			<documentpublisheddate>${child.properties["vgr:publishedAt"]?datetime}</documentpublisheddate>
    		<#else>
    			<documentpublisheddate/>
    		</#if>
    	</#if>
    	
    	<#if showPublishedAt>
    		<#if child.properties["vgr:publishedAt"]?exists >
    			<documentpublisheddate>${child.properties["vgr:publishedAt"]?datetime}</documentpublisheddate>
    		<#else>
    			<documentpublisheddate/>
    		</#if>
    	</#if>
    	
    	<#if showResponsibleName>
    		<#if child.properties["vgr:responsibleName"]?exists >
    			<documentresponsible>${child.properties["vgr:responsibleName"]}</documentresponsible>
    		<#else>
    			<documentresponsible/>	
    		</#if>
    	</#if>
    	
    	<#if showCreatedByAuthor>
    		<#if child.properties["vgr:createdByAuthor"]?exists >
    			<documentauthor>${child.properties["vgr:createdByAuthor"]}</documentauthor>
    		<#else>
    			<documentauthor/>
    		</#if>
    	</#if>
    	
    	<#if showDocId >
    		<#if child.properties["vgr:docId"]?exists >
				<documentid>${child.properties["vgr:docId"]}</documentid>
			<#else>
				<documentid/>
			</#if>
    	</#if>
	</listrow>
    </#list>
</listrows>
  
